package plogg;

import java.util.Date;

/**
 * Represents a log entry that is gathered from a
 * particular Plogg device at any moment in time
 *
 */
public class LogEntry implements Comparable<LogEntry> {
	
	private Date date;
	private String time; //Java has no time object! Needs to be investigated
	private double cost;
	private double power;
	
	/**
	 * Creates a new LogEntry
	 * @param date Date of entry
	 * @param time Time of entry
	 * @param cost Cost of power consumption
	 * @param power Power consumed
	 */
	public LogEntry(Date date, String time, double cost, double power) {
		this.date = date;
		this.time = time;
		this.cost = cost;
		this.power = power;
	}
	
	/**
	 * Gets the date of log entry
	 * @return Date
	 */
	public Date getDate() {
		return date;
	}
	
	/**
	 * Gets the time of log entry
	 * @return Time
	 */
	public String getTime() {
		return time;
	}
	
	/**
	 * Gets the cost
	 * @return Cost
	 */
	public double getCost() {
		return cost;
	}
	
	/**
	 * Gets the power consumption
	 * @return power consumption
	 */
	public double getPower() {
		return power;
	}
	
	public int compareTo(LogEntry o) {
		/*
		 * @TODO. Add Code
		 */
		
		return 0;
	}
	
	

}
